const path = require("path");
/**
 * @type {import('webpack').Configuration}
 */
module.exports = {
  mode: "production",
  entry: "./src/index.js",
  output: {
    path: path.join(__dirname, "dist"),
    filename: "[name].js",
    clean: true,
  },
  cache: {
    type: "filesystem",
  },
  optimization: {
    splitChunks: {
      minSize: 1 * 1024,
      chunks: "all",
      name: "common",
    },
  },
};
